package Lesson14;

import java.util.Scanner;

public class AuctionDemo {

	public static void main(String[] args) 
	{
		/*	Create an auction. The auction can have N cars.
		 * 	The auction can up to N cars for sale.
		 * 	The auction can have up to N participants to buy.
		 * 	Each participant can buy up to 2 cars.
		 * 	Each participant desides weather to buy a car by a random boolean value.
		 * 	Cars can be bought only once.
		 * 	If no other cars are left in the auction, the remaining participants go home.
		 * 	After all participants have decided OR all cars are sold, the auction closes.
		 * 	If after all sales there are still cars left, the cars are scrapped.
		 * 
		 * 	Input: number of cars, number of participants
		 * 	Output: 1.All participants that bought a car and the model of their cars.
		 * 			2.All scrapped cars if any.
		 * 	
		 * 	for(int i = 0; i<10; i++)	
		 * 	{
		 * 		int random = (int)Math.round(Math.random() + 1);
		 * 	}
		 * 
		 */
		Scanner sc = new Scanner(System.in);
		System.out.println("Press 's' to start the auction:");
		char start = sc.next().charAt(0);
		if(start == 's')
		{
			Auction auction = new Auction();
			auction.start();
		
		}
		else
			System.out.println("The auction is not starting today....");
		sc.close();
	}

}
